package com.bw.goods_module.home.adapter;

import android.widget.ImageView;

import com.bw.goods_module.R;
import com.bw.imgload_sdk.LoadImgUtils;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;

public class HotAdapter extends BaseQuickAdapter<String, BaseViewHolder> {

    public HotAdapter() {
        super(R.layout.item_home_hot);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, String s) {
        ImageView img = baseViewHolder.getView(R.id.home_hot_img);
        LoadImgUtils.loadMatchImg(s,img);
    }
}
